FROM ubuntu:bionic

RUN apt-get update
RUN apt-get install -y wget unzip
RUN apt-get install -y unzip curl libcurl4 libssl1.0.0

RUN wget https://minecraft.azureedge.net/bin-linux/bedrock-server-1.17.32.02.zip
RUN unzip ./bedrock-server-1.17.32.02.zip && rm ./bedrock-server-1.17.32.02.zip

COPY . .
RUN chmod +x ./bedrock_server

WORKDIR .
ENV LD_LIBRARY_PATH=.
CMD ./bedrock_server
